package com.juicygames.framework.collider;

import android.graphics.Canvas;

import com.juicygames.framework.GameAction;
import com.juicygames.framework.gamepart.GameEntity;

public class TargetCollisionAction extends GameAction {
	
	GameEntity targetEntity;
	
	private static TargetCollisionAction instance = null;
	
	public static TargetCollisionAction getInstance(GameEntity targetEntity) {
		if (instance == null) {
			instance = new TargetCollisionAction(targetEntity);
		} else {
			instance.setTargetEntity(targetEntity);
		}
		return instance;
	}
	
	private TargetCollisionAction(GameEntity targetEntity) {
		this.targetEntity = targetEntity;
	}
	
	public GameEntity getTargetEntity() {
		return targetEntity;
	}

	protected void setTargetEntity(GameEntity targetEntity) {
		this.targetEntity = targetEntity;
	}


}
